package com.msb.servicemap.service;

import com.msb.internalcommon.dto.ResponseResult;
import com.msb.internalcommon.reponese.TerminalResponse;
import com.msb.servicemap.remote.TerminalClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: jiudianliu
 * @Date: 2023/7/8 - 07 - 08 - 9:45
 * @Description: com.msb.servicemap.service
 * @version: 1.0
 */
@Service
public class TerminalService {

    @Autowired
    private TerminalClient terminalClient;

    public ResponseResult add(String name , String desc){
        return terminalClient.add(name , desc) ;
    }

    public  ResponseResult<List<TerminalResponse>> aroundsearch(String center , Integer radius){
        return terminalClient.aroundsearch(center , radius) ;
    }
}
